package com.itmayidu.test02.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.itmayidu.entity.User;

import java.util.List;

@Mapper
public interface UserMappertest02 {
    // @Select("select * from Users where name = #{name}")
    User findByName(@Param("name") String name);

    // @Insert("insert into Users(Name,Age) values(#{name},#{age})")
    int insert(@Param("name") String name, @Param("age") Integer age);

    // @Select("select id,user_name name,age,password from t_user where user_name = #{name}")
    List<User> queryUser(String name);
}
